#pragma once
#include<iostream>
#include<string>
#include<assert.h>
using namespace std;

namespace ST
{
	class string
	{
	public:
		typedef char* iterator;

		iterator begin();
		iterator end();

		//string();
		string(const char* str = "");
		const char* c_str()const;
		~string();

		size_t size()const;
		char& operator[](size_t i);
		const char& operator[](size_t i)const;

	private:
		char* _str;
		size_t _size;
		size_t _capacity;
	};
}
